import Vue from 'vue'
import App from './App'
import store from './store' // store
import plugins from './plugins' // plugins
import notificationUtil from './utils/notification' // notification工具类
import websocketUtil from './utils/websocket' // websocket工具类
import websocketHandler from './utils/websocketHandler' // websocket消息处理工具类
import unipushUtil from './utils/unipush' // unipush工具类
import './permission' // permission

// 应用启动时就初始化WebSocket连接
import config from './config'

Vue.use(plugins)

Vue.config.productionTip = false
Vue.prototype.$store = store
Vue.prototype.$notification = notificationUtil
Vue.prototype.$websocket = websocketUtil
Vue.prototype.$websocketHandler = websocketHandler
// Vue.prototype.$unipush = unipushUtil

App.mpType = 'app'

const app = new Vue({
  ...App
})

app.$mount()